package work.timejay.user.entity.users;

import com.baomidou.mybatisplus.annotation.TableName;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import work.timejay.common.SuperModel;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wwj
 * @since 2022-01-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("user_amount")
@ApiModel(value="UserAmount对象", description="用户表")
public class UserAmount extends SuperModel<UserAmount> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "用户余额")
    @TableField("amount")
    private Long amount;


    public static final String USER_ID = "user_id";

    public static final String AMOUNT = "amount";

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
